// Package user_repo
// @Author zhongxc
// @Date 2023/12/12 14:11:00
// @Desc
package user

import (
	"context"
	"zhongxc.cc/admin-user/internal/model"
)

type SysUserRepo interface {
	FindById(ctx context.Context, userId int64) (*model.SysUser, error)
	UpdateById(ctx context.Context, userId int64, user map[string]interface{}) error
	Save(ctx context.Context, user *model.SysUser) error
	FindByName(ctx context.Context, username string) (*model.SysUser, error)
}
